package com.qf.controller;

import com.qf.entity.Result;
import com.qf.mapper.OrderInfoMapper;
import com.qf.pojo.OrderInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/orderinfo")
public class OrderInfoController {


    @Resource
    OrderInfoMapper orderInfoMapper;

    @PostMapping
    public Result save(@RequestBody OrderInfo orderInfo){
        orderInfoMapper.insert(orderInfo);
        return Result.success(orderInfo);
    }

}
